<template>
    <header class="header">
      <h1 class="title">Neusoft 体检报告管理系统</h1>
      <p class="doctor-name">{{ doctor.realname }}</p>
    </header>
</template>

<script setup>
import {getSessionStorage} from '../utils/common'
import { useRouter } from 'vue-router';
const router = useRouter()
const doctor=getSessionStorage('doctor')
if(doctor==null) {router.push('/login')}
</script>

<style scoped>

.header {
  background-color: #b3c0d0;
  color: white;
  padding: 1rem;
}
.title {
  font-size: 1.5rem;
  font-weight: bold;
}

.doctor-name {
  font-size: 0.875rem;
}
</style>